package com.sc.nft.admin.request;

import com.sc.nft.entity.dto.AddEquityPropsGiftDTO;
import com.sc.nft.enums.EquityPropsTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class AddEquityPropsRequest {

    @ApiModelProperty("标题")
    @NotBlank(message = "标题不能为空")
    private String firstTitle;

    @ApiModelProperty("缩略图")
    @NotBlank(message = "缩略图不能为空")
    private String creationContent;

    @ApiModelProperty("产品介绍")
    //@NotBlank(message = "产品介绍不能为空")
    private String productDetails;

    @ApiModelProperty("是否过期 0:否 1:是")
    @NotNull(message = "是否过期不能为空")
    private Boolean isExpired;

    @ApiModelProperty("过期天数")
    @NotNull(message = "过期天数不能为空")
    private Integer expiredDay;

    @ApiModelProperty("品牌是否可用 0:否 1:是")
    @NotNull(message = "品牌是否可用不能为空")
    private Boolean isBrandUse;

    @ApiModelProperty("分类 : 1:虚拟道具 2:盲盒兑换券")
    @NotNull(message = "分类不能为空")
    private EquityPropsTypeEnum typeClassify;

    @ApiModelProperty("获取方式地址")
    private String getRulesUrl;

    @ApiModelProperty("是否开启赠送")
    @NotNull(message = "是否开启赠送为必填项")
    private Boolean isGift;

    @ApiModelProperty("时效必须大于几天")
    private Integer aging;

    @ApiModelProperty("赠送配置")
    @Valid
    private AddEquityPropsGiftDTO addEquityPropsGiftDTO;

    @ApiModelProperty("关联绑定")
//    @NotNull(message = "关联绑定不能为空")
    private Long vistIn;

    @ApiModelProperty("daoId")
    private Long daoId;
}
